package com.jiyun.controller;


import com.jiyun.om.entity.ShippingMethods;
import com.jiyun.service.IShippingMethodsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 动态下拉框表 前端控制器
 * </p>
 *
 * @author zhx
 * @since 2025-02-12
 */
@RestController
@RequestMapping("/shipping-methods")
@Tag(name = "运输方式管理")
public class ShippingMethodsController {
    @Autowired
    private IShippingMethodsService shippingMethodsService;
    @Operation(summary = "运输方式下拉框")
    @RequestMapping("/findShippingMethods")
    public List<ShippingMethods> findShippingMethods() {
        return shippingMethodsService.list();
    }
}
